Conditions | 1 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { IReliableSocketEmitOptions } from "../interfaces/i-reliable-socket-emit-options"; |
||
17 | |||
18 | /** |
||
19 | * Returns promise with response. |
||
20 | * |
||
21 | * @param eventName |
||
22 | * @param emitDataPack |
||
23 | * @param options |
||
24 | */ |
||
25 | public emit( |
||
26 | socket: ISocketEmitter, |
||
27 | eventName: string, |
||
28 | body: any, |
||
29 | options: Partial<IReliableSocketEmitOptions> = {}, |
||
30 | ): Promise<any> { |
||
31 | return this.emitter.emit(socket, eventName, body, options); |
||
32 | } |
||
46 |